<!DOCTYPE html>
<html>
<head>
    <title>题目记录表（记录顺序练习的题目）</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <i-col span="4">
                <i-input v-model="q.name" @on-enter="query" placeholder="题目"/>
            </i-col>

            <i-col span="4">
                <i-select v-model="q.studentId" filterable label-in-value placeholder="学生">
                    <i-option v-for="item in studentList" :value="item.userId"
                              :key="item.userId">{{item.username}}
                    </i-option>
                </i-select>
            </i-col>

            <i-button class="btn btn-primary" @click="query">查询</i-button>
            <!--<#if shiro.hasPermission("lanling:questionrecord:save")>-->
            <!--<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
            <!--</#if>-->
            <!--<#if shiro.hasPermission("lanling:questionrecord:update")>-->
            <!--<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>-->
            <!--</#if>-->
            <!--<#if shiro.hasPermission("lanling:questionrecord:delete")>-->
            <!--<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>-->
            <!--</#if>-->
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <i-form ref="formValidate" :model="questionRecord" :rules="ruleValidate" :label-width="80"
                class="form-horizontal">
            <Form-item label="创建人" prop="createUserId">
                <i-input v-model="questionRecord.createUserId" placeholder="创建人"/>
            </Form-item>
            <Form-item label="创建时间" prop="createDate">
                <i-input v-model="questionRecord.createDate" placeholder="创建时间"/>
            </Form-item>
            <Form-item label="更新时间" prop="lastModifyDate">
                <i-input v-model="questionRecord.lastModifyDate" placeholder="更新时间"/>
            </Form-item>
            <Form-item label="学员id" prop="studentId">
                <i-input v-model="questionRecord.studentId" placeholder="学员id"/>
            </Form-item>
            <Form-item label="" prop="sort">
                <i-input v-model="questionRecord.sort" placeholder=""/>
            </Form-item>
            <Form-item label="问题id" prop="questionId">
                <i-input v-model="questionRecord.questionId" placeholder="问题id"/>
            </Form-item>
            <Form-item label="学员答案" prop="studentAnswer">
                <i-input v-model="questionRecord.studentAnswer" placeholder="学员答案"/>
            </Form-item>
            <Form-item label="正确题目数" prop="truQues">
                <i-input v-model="questionRecord.truQues" placeholder="正确题目数"/>
            </Form-item>
            <Form-item label="准确率" prop="truRate">
                <i-input v-model="questionRecord.truRate" placeholder="准确率"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>
                返回</i-button>
            </Form-item>
        </i-form>
    </div>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/lanling/questionrecord.js?_${.now?long}"></script>
</body>
</html>